package pacman;

/**
 * An interface for pacman's food elements.
 */
public interface iFood {    
    /**
     * Returns the current position of the food.
     * @return The current position of the food.
     */
    public Position getPosition();
    
    /**
     * Sets a new position for food.
     * @param pos The new position of the food.
     */
    public void setPosition(Position pos);

    /**
     * Tells the food that it's been eaten and tells the specified pacman that he has eaten some food.
     * @param pacman The pacman who eats the food.
     */
    public void Eat(cPacman pacman);
    
    /**
     * Returns the name of the image to be loaded for this food.
     * @return A string containing the name of the image to be loaded for this food.
     */
    public String getImageName();
}
